import Vue from 'vue'
import Router from 'vue-router'
import Recommend from '@/components/Recommend'
import Hot from '@/components/Hot'
import Search from '@/components/Search'
import musicplay from '@/components/musicplay'
import Download from '@/components/Download'
import Sing from '@/components/Sing'
import Comment from '@/components/Comment'
import Head from '@/components/Head'

Vue.use(Router)

export default new Router({
	routes:[
		{ path: '/', redirect: '/recommend' }, // 默认就跳转此页面
		{
			path:'/recommend',
			name:'Recommend',
			component:Recommend
		},
		{
			path:'/hot',
			name:'Hot',
			component:Hot,
			// redirect: '/Hot',
			
		},
		{
			path:'/search',
			name:'Search',
			component:Search
		},
		{
			path:'/musicplay',
			name:'musicplay',
			component:musicplay
		},
		{
			path:'/download',
			name:'Download',
			component:Download
		},
		
		{
			path:'/sing',	
			name:'Sing',
			component:Sing
		},
		{
			path:'/comment',
			name:'Comment',
			component:Comment
		},
		{
			path:'/head',
			name:'Head',
			component:Head
		},
		
			
	]
})

